home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / RadioLib / RadioET.c next >
Encoding:
C/C++ Source or Header  |  1994-01-12  |  651 b   |  33 lines  |  [TEXT/KAHL]

  1. #include "EventLib.h"
  2. #include "RadioLib.h"
  3.  
  4. static EventTableType gEventTable;
  5.     
  6. static Boolean within(EventObjectType object, Point where)
  7. {
  8.     return(RadioWithin(object, where));
  9. }
  10.  
  11. static Boolean mousedown(EventObjectType object, EventRecord *event)
  12. {
  13.     return(RadioMouseDown(object, event));
  14. }
  15.  
  16. static void update(EventObjectType object)
  17. {
  18.     RadioUpdate(object);
  19. }
  20.  
  21. const /* EventTableType */ void *RadioEventTable(void)
  22. {
  23.     return(&gEventTable);
  24. }
  25.  
  26. void RadioEventTableRegister(void)
  27. {
  28.     gEventTable.focusWindow.within = within;
  29.     gEventTable.focusWindow.mousedown = mousedown;
  30.     gEventTable.window.update = update;
  31.     EventTableRegister(&gEventTable);
  32. }
  33.